#!/usr/bin/env python
#coding:utf-8

def htmlheader(title):
    print '''Content-type: text/html

    <?xml version = "1.0" encoding = "utf-8"?>
    <!DOCTYPE html PUBLIC
    "-//W3C//DTD XHTML 1.0 Strict//EN"
    "DTD/xhtml1-strict.dtd">
    <html xmlns = "http://www.w3.org/1999/xhtml">
    <head><title>%s</title></head>

    <body>''' % title

def htmlend():
    print "</body></html>"

    
